﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DesignPattern.BuilderPattern
{
    //具体的某个建造者
    public class Product1Builder:Builder
    {
        private Product _Product = new Product();
        public override void BuildPartA()
        {
            _Product.Add("创建大的PartA");
        }
        public override void BuildPartB()
        {
            _Product.Add("创建小的PartB");
        }

        public override void BuildPartC()
        {
            _Product.Add("创建不大不小的PartC");
        }
        public override Product GetResult()
        {
            return _Product;
        }
    }
}
